package com.apotik.legenda.frame;

import java.awt.Frame;

import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class Form1 extends JDialog {
	
	private Frame _frame;
	
	public Form1(Frame frame, boolean modal) {
		super(frame, modal);
		this._frame = frame;
		
		JPanel panel = new JPanel();
        panel.setSize(200, 200);
        JLabel lbl = new JLabel("blah blah");
        panel.add(lbl);
        frame.add(panel);
        frame.setSize(400, 400);
	}
	
	public void tampil(){
		this._frame.setVisible(true);
	}

	
}
